package com.amado.springcloud.feignhystrix.client;

import com.amado.springcloud.user.entity.User;
import com.amado.springcloud.user.vo.SNSResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/fegin-user")
//项目名称
@FeignClient(name = "user-service")
public interface UserFeignThree {
    @GetMapping("/{id}")
    SNSResult<User> getUser(@PathVariable("id") Long id);
}